package com.syyo.admin.service;

import com.syyo.admin.domain.FileUpload;
import com.syyo.admin.domain.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @Auther: wangzhong
 * @Date: 2020/8/18 10:17
 * @Description:
 */
public interface FileService {

    /**
     * 上传文件
     * @param file
     * @return
     */
    ResultVo<FileUpload> uploadFile(MultipartFile file);

    /**
     * 下载文件
     * @param fileName
     * @param uuid
     */
    void downloadFile(String fileName, String uuid, HttpServletResponse response) throws IOException;
}
